.class Lcom/nemustech/tiffany/world/TFModel$1;
.super Ljava/lang/Object;
.source "TFModel.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/nemustech/tiffany/world/TFModel;->forceImageLoading(Lcom/nemustech/tiffany/world/TFWorld;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/tiffany/world/TFModel;

.field final synthetic val$designatedWorld:Lcom/nemustech/tiffany/world/TFWorld;

.field final synthetic val$originWorld:Lcom/nemustech/tiffany/world/TFWorld;


# direct methods
.method constructor <init>(Lcom/nemustech/tiffany/world/TFModel;Lcom/nemustech/tiffany/world/TFWorld;Lcom/nemustech/tiffany/world/TFWorld;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 493
    iput-object p1, p0, Lcom/nemustech/tiffany/world/TFModel$1;->this$0:Lcom/nemustech/tiffany/world/TFModel;

    iput-object p2, p0, Lcom/nemustech/tiffany/world/TFModel$1;->val$designatedWorld:Lcom/nemustech/tiffany/world/TFWorld;

    iput-object p3, p0, Lcom/nemustech/tiffany/world/TFModel$1;->val$originWorld:Lcom/nemustech/tiffany/world/TFWorld;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .prologue
    .line 495
    iget-object v3, p0, Lcom/nemustech/tiffany/world/TFModel$1;->this$0:Lcom/nemustech/tiffany/world/TFModel;

    iget-object v4, p0, Lcom/nemustech/tiffany/world/TFModel$1;->val$designatedWorld:Lcom/nemustech/tiffany/world/TFWorld;

    iput-object v4, v3, Lcom/nemustech/tiffany/world/TFModel;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    .line 496
    sget-object v0, Lcom/nemustech/tiffany/world/TFRenderer;->mGL:Ljavax/microedition/khronos/opengles/GL10;

    .line 497
    .local v0, gl:Ljavax/microedition/khronos/opengles/GL10;
    if-nez v0, :cond_0

    new-instance v3, Ljava/lang/IllegalArgumentException;

    const-string v4, "Void GL context."

    invoke-direct {v3, v4}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v3

    .line 499
    :cond_0
    iget-object v3, p0, Lcom/nemustech/tiffany/world/TFModel$1;->this$0:Lcom/nemustech/tiffany/world/TFModel;

    invoke-virtual {v3}, Lcom/nemustech/tiffany/world/TFModel;->getOpacity()F

    move-result v1

    .line 500
    .local v1, prevOpacity:F
    iget-object v3, p0, Lcom/nemustech/tiffany/world/TFModel$1;->this$0:Lcom/nemustech/tiffany/world/TFModel;

    invoke-virtual {v3}, Lcom/nemustech/tiffany/world/TFModel;->isVisible()Z

    move-result v2

    .line 501
    .local v2, visibility:Z
    const-string v3, "TFModel"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "Force draw to cache, "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    iget-object v5, p0, Lcom/nemustech/tiffany/world/TFModel$1;->this$0:Lcom/nemustech/tiffany/world/TFModel;

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 502
    iget-object v3, p0, Lcom/nemustech/tiffany/world/TFModel$1;->this$0:Lcom/nemustech/tiffany/world/TFModel;

    const/4 v4, 0x1

    invoke-virtual {v3, v4}, Lcom/nemustech/tiffany/world/TFModel;->setVisibility(Z)V

    .line 503
    iget-object v3, p0, Lcom/nemustech/tiffany/world/TFModel$1;->this$0:Lcom/nemustech/tiffany/world/TFModel;

    const/4 v4, 0x0

    invoke-virtual {v3, v4}, Lcom/nemustech/tiffany/world/TFModel;->setOpacity(F)V

    .line 504
    iget-object v3, p0, Lcom/nemustech/tiffany/world/TFModel$1;->this$0:Lcom/nemustech/tiffany/world/TFModel;

    const/4 v4, 0x0

    invoke-virtual {v3, v0, v4}, Lcom/nemustech/tiffany/world/TFModel;->_draw(Ljavax/microedition/khronos/opengles/GL10;I)V

    .line 505
    iget-object v3, p0, Lcom/nemustech/tiffany/world/TFModel$1;->this$0:Lcom/nemustech/tiffany/world/TFModel;

    invoke-virtual {v3, v1}, Lcom/nemustech/tiffany/world/TFModel;->setOpacity(F)V

    .line 506
    iget-object v3, p0, Lcom/nemustech/tiffany/world/TFModel$1;->this$0:Lcom/nemustech/tiffany/world/TFModel;

    invoke-virtual {v3, v2}, Lcom/nemustech/tiffany/world/TFModel;->setVisibility(Z)V

    .line 507
    iget-object v3, p0, Lcom/nemustech/tiffany/world/TFModel$1;->this$0:Lcom/nemustech/tiffany/world/TFModel;

    iget-object v4, p0, Lcom/nemustech/tiffany/world/TFModel$1;->val$originWorld:Lcom/nemustech/tiffany/world/TFWorld;

    iput-object v4, v3, Lcom/nemustech/tiffany/world/TFModel;->mWorld:Lcom/nemustech/tiffany/world/TFWorld;

    .line 508
    return-void
.end method
